<?php
	if(!isset($_GET["url"])) { die(); }

	// else, try with curl :
	$filename = $_GET["url"];

	$ch = curl_init($filename);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
		curl_setopt($ch, CURLOPT_NOBODY, FALSE);
		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
		curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"); 


		$response = curl_exec($ch);
		$headers = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);

		curl_close($ch);

	header("Content-Type:".$headers);
	echo $response;
?>
